package com.dietmanager.model;

import java.io.Serializable;

/**
 * The Class FoodModel is a model for foods and recipes.
 */
public abstract class FoodModel implements Serializable {
	private static final long serialVersionUID = 8559429843575272687L;
	private String name;
	private int amount;
	protected int calories;
	protected int fat;
	protected int carbohydrates;
	protected int protein;

	/**
	 * Instantiates a new food model.
	 *
	 * @param name the name
	 * @param amount the amount
	 */
	public FoodModel(String name, int amount) {
		this.name = name;
		this.amount = amount;
	}

	/**
	 * Gets the name.
	 *
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * Sets the name.
	 *
	 * @param name the new name
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * Gets the amount.
	 *
	 * @return the amount
	 */
	public int getAmount() {
		return amount;
	}

	/**
	 * Sets the amount.
	 *
	 * @param amount the new amount
	 */
	public void setAmount(int amount) {
		this.amount = amount;
	}

	/**
	 * Gets the calories.
	 *
	 * @return the calories
	 */
	public int getCalories() {
		return calories;
	}

	/**
	 * Gets the fat.
	 *
	 * @return the fat
	 */
	public int getFat() {
		return fat;
	}

	/**
	 * Gets the carbohydrates.
	 *
	 * @return the carbohydrates
	 */
	public int getCarbohydrates() {
		return carbohydrates;
	}

	/**
	 * Gets the protein.
	 *
	 * @return the protein
	 */
	public int getProtein() {
		return protein;
	}

}
